/**
 * Copyright (c) 2013-Now http://aidex.vip All rights reserved.
 */
// 此处第二个参数vm，就是我们在页面使用的this，你可以通过vm获取vuex等操作
const install = (Vue, vm) => {

	// 参数配置对象
	const config = vm.vuex_config;

	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	vm.$u.api = {

		// 基础服务：登录登出、身份信息、菜单授权、切换系统、字典数据等
		lang: (params = {}) => vm.$u.get('/lang/' + params.lang),
		index: (params = {}) => vm.$u.get(config.adminPath + '/mobile/index', params),
		getUserInfo: (params = {}) => vm.$u.get(config.adminPath + '/mobile/user/getUserInfo', params),
		login: (params = {}) => vm.$u.postJson(config.adminPath + '/mobile/login/loginByPassword', params),
		sendCode: (params = {}) => vm.$u.post(config.adminPath + '/mobile/login/sendCode', params),
		registerUser: (params = {}) => vm.$u.post(config.adminPath + '/mobile/user/registerUser', params),
		//首页相关api
		getIndexCardInfo: (params = {}) => vm.$u.get(config.adminPath + '/mobile/index/getIndexCardInfo',
			params),
		getM2mOrderFlowList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/index/getM2mOrderFlowList',
			params),
		//获取卡可购买套餐包
		getM2mOrderPackageList: (params = {}) => vm.$u.get(config.adminPath +
			'/mobile/index/getM2mOrderPackageList', params),

		logout: (params = {}) => vm.$u.get(config.adminPath + '/mobile/login/logout', params),
		authInfo: (params = {}) => vm.$u.get(config.adminPath + '/authInfo', params),
		menuTree: (params = {}) => vm.$u.get(config.adminPath + '/menuTree', params),
		switchSys: (params = {}) => vm.$u.get(config.adminPath + '/switch/' + params.sysCode),
		dictData: (params = {}) => vm.$u.get(config.adminPath + '/system/dict/data/type/' + params.dictType),

		// 账号服务：验证码接口、忘记密码接口、注册账号接口等
		validCode: (params = {}) => vm.$u.getText('/validCode', params),
		getFpValidCode: (params = {}) => vm.$u.post('/account/getFpValidCode', params),
		savePwdByValidCode: (params = {}) => vm.$u.post('/account/savePwdByValidCode', params),
		getRegValidCode: (params = {}) => vm.$u.post('/account/getRegValidCode', params),
		saveRegByValidCode: (params = {}) => vm.$u.post('/account/saveRegByValidCode', params),

		// APP公共服务
		upgradeCheck: () => vm.$u.post('/app/upgrade/check', {
			appCode: config.appCode,
			appVersion: config.appVersion
		}),
		commentSave: (params = {}) => vm.$u.post('/app/comment/save', params),

		//公共接口
		getAutoCode: (params = {}) => vm.$u.get(config.adminPath + '/mobile/system/autocode/get', params),

		// 供应商接口
		supplie: {
			getSupplieList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/md/vendor/list', params),
			getSupplieDetail: (params = {}) => vm.$u.get(config.adminPath + '/mobile/md/vendor/get', params),
			UpdateSupplie: (params = {}) => vm.$u.get(config.adminPath + '/mobile/md/vendor', params),
			handleDelSupplieList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/md/vendor/remove',
				params),
		},

		//采购订单号接口
		purchas: {
			getPurchaseList: (params = {}) => vm.$u.get(config.adminPath + '/mes/po/purchase/list', params),
		},
		// 客户接口
		client: {
			getClientList: (params = {}) => vm.$u.get(config.adminPath + '/mes/md/client/list', params),
			getClientDetail: (params = {}) => vm.$u.get(config.adminPath + '/mes/md/client/{clientId}', params),
		},

		// 出货检验单接口
		check: {
			getCheckList: (params = {}) => vm.$u.get(config.adminPath + '/mes/md/client/list', params),
		},

		//来料检验单接口
		iqc: {
			getIqcList: (params = {}) => vm.$u.get(config.adminPath + '/mes/qc/iqc/list', params),
		},

		// 仓库接口
		Warehouse: {
			getWarehouseTree: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/warehouse/getTreeList',
				params),
		},

		// 物料查询
		materialInquiry: {
			getMaterialList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/md/mditem/list', params),
		},
		// 生产工单查询
		workorder: {
			getWorkorderList: (params = {}) => vm.$u.get(config.adminPath + '/mes/pro/workorder/list', params),
		},

		//库存查询
		inventoryInquiry: {
			//库存查询
			getInventoryList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/wmstock/list', params)
		},

		//采购入库
		buyStore: {
			//采购入库-列表
			getBuyStoreList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/itemrecpt/list', params),
			//采购入库-详情
			getBuyStoreDetail: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/itemrecpt/get',
				params),
			//采购入库-新增
			handleBuyStoreAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mobile/wm/itemrecpt/add',
				params),
			//采购入库-修改
			handleBuyStoreUpdata: (params = {}) => vm.$u.putJson(config.adminPath + '/mobile/wm/itemrecpt/edit',
				params),
			//采购入库-删除
			// handleBuyStoreDelete: (recptIds, params = {}) => vm.$u.delete(config.adminPath +
			// 	`/mobile/wm/itemrecpt/remove/${recptIds}`,
			// 	params),
			handleBuyStoreDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/itemrecpt/remove',
				params),
			//采购入库-执行入库
			handleBuyStoreExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/itemrecpt/execute',
				params),
			//采购入库-列表-单行
			getBuyStoreListLine: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/itemrecptline/list',
				params),
			//采购入库-详情-单行
			getBuyStoreDetailLine: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/itemrecptline/get',
				params),
			//采购入库-新增-单行
			handleBuyStoreAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/itemrecptline/add',
				params),
			//采购入库-修改-单行
			handleBuyStoreUpdataLine: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/itemrecptline/update',
				params),
			//采购入库-删除-单行
			handleBuyStoreDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/itemrecptline/delete',
				params),
		},

		//采购退货
		buyReturn: {
			//采购退货-列表
			getBuyReturnList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/rtvendor/list', params),
			//采购退货-详情
			getBuyReturnDetail: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/rtvendor/get',
				params),
			//采购退货-新增
			handleBuyReturnAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mobile/wm/rtvendor',
				params),
			//采购退货-修改
			handleBuyReturnUpdata: (params = {}) => vm.$u.putJson(config.adminPath + '/mobile/wm/rtvendor',
				params),
			//采购退货-删除
			handleBuyReturnDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/rtvendor/remove',
				params),
			//采购退货-执行退货
			handleBuyReturnExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/rtvendor/edit',
				params),
			//采购退货-列表-单行
			getBuyReturnListLine: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/rtvendorline/list',
				params),
			//采购退货-详情-单行
			getBuyReturnDetailLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/rtvendorline/get',
				params),
			//采购退货-新增-单行
			handleBuyReturnAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/rtvendorline',
				params),
			//采购退货-修改-单行
			handleBuyReturnUpdataLine: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/rtvendorline/edit',
				params),
			//采购退货-删除-单行
			handleBuyReturnDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/rtvendorline/remove',
				params),
		},

		//生产领料
		productionGet: {
			//生产领料-列表
			getProductionGetList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/issueheader/list',
				params),
			//生产领料-详情
			getProductionGetDetail: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/issueheader/get',
				params),
			//生产领料-新增
			handleProductionGetAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mobile/wm/issueheader',
				params),
			//生产领料-修改
			handleProductionGetUpdata: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/issueheader',
				params),
			//生产领料-删除
			handleProductionGetDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/issueheader/remove',
				params),
			//生产领料-执行出库
			handleProductionGetExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/issueheader/edit',
				params),
			//生产领料-列表-单行
			getProductionGetListLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/issueline/list',
				params),
			//生产领料-详情-单行
			getProductionGetDetailLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/issueline/get',
				params),
			//生产领料-新增-单行
			handleProductionGetAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/issueline',
				params),
			//生产领料-修改-单行
			handleProductionGetUpdataLine: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/issueline',
				params),
			//生产领料-删除-单行
			handleProductionGetDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/issueline/remove',
				params),
		},

		//生产退料
		productionBack: {
			//生产退料-列表
			getProductionBackList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/rtissue/list',
				params),
			//生产退料-详情
			getProductionBackDetail: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/rtissue/get',
				params),
			//生产退料-新增
			handleProductionBackAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mobile/wm/rtissue',
				params),
			//生产退料-修改
			handleProductionBackUpdata: (params = {}) => vm.$u.putJson(config.adminPath + '/mobile/wm/rtissue',
				params),
			//生产退料-删除
			handleProductionBackDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/rtissue/remove',
				params),
			//生产退料-执行出库
			handleProductionBackExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/rtissue/edit',
				params),
			//生产退料-列表-单行 
			getProductionBackListLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/rtissueline/list',
				params),
			//生产退料-详情-单行
			getProductionBackDetailLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/rtissueline/get',
				params),
			//生产退料-新增-单行
			handleProductionBackAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/rtissueline',
				params),
			//生产退料-修改-单行
			handleProductionBackUpdataLine: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/rtissueline',
				params),
			//生产退料-删除-单行
			handleProductionBackDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/rtissueline/remove',
				params),
		},

		//产品入库
		productStorage: {
			//生产退料-列表
			getProductStorageList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/productrecpt/list',
				params),
			//生产退料-详情
			getProductStorageDetail: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productrecpt/get',
				params),
			//生产退料-新增
			handleProductStorageAdd: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/productrecpt',
				params),
			//生产退料-修改
			handleProductStorageUpdata: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/productrecpt',
				params),
			//生产退料-删除
			handleProductStorageDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/productrecpt/remove',
				params),
			//生产退料-执行出库
			handleProductStorageExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/productrecpt/edit',
				params),
			//生产退料-列表-单行
			getProductStorageListLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productrecptline/list',
				params),
			//生产退料-详情-单行
			getProductStorageDetailLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productrecptline/get',
				params),
			//生产退料-新增-单行
			handleProductStorageAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/productrecptline',
				params),
			//生产退料-修改-单行
			handleProductStorageUpdataLine: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/productrecptline',
				params),
			//生产退料-删除-单行
			handleProductStorageDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/productrecptline/remove',
				params),
		},

		//销售出库
		saleReturn: {
			//销售出库-列表
			getSaleReturnList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/productsalse/list',
				params),
			//销售出库-详情
			getSaleReturnDetail: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productrecpt/get',
				params),
			//销售出库-新增
			handleSaleReturnAdd: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/productrecpt',
				params),
			//销售出库-修改
			handleSaleReturnUpdata: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/productrecpt',
				params),
			//销售出库-删除
			handleSaleReturnDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/productrecpt/remove',
				params),
			//销售出库-执行出库
			handleSaleReturnExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/productrecpt/edit',
				params),
			//销售出库-列表-单行
			getSaleReturnListLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productrecptline/list',
				params),
			//销售出库-详情-单行
			getSaleReturnDetailLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productrecptline/get',
				params),
			//销售出库-新增-单行
			handleSaleReturnAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/productrecptline',
				params),
			//销售出库-修改-单行
			handleSaleReturnUpdataLine: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/productrecptline',
				params),
			//销售出库-删除-单行
			handleSaleReturnDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/productrecptline/remove',
				params),
		},

		//销售退货
		saleBack: {
			//销售退货-列表
			getSaleBackList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/rtsalse/list',
				params),
			//销售退货-详情
			getSaleBackDetail: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/rtsalse/get',
				params),
			//销售退货-新增
			handleSaleBackAdd: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/rtsalse',
				params),
			//销售退货-修改
			handleSaleBackUpdata: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/rtsalse',
				params),
			//销售退货-删除
			handleSaleBackDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/rtsalse/remove',
				params),
			//销售退货-执行出库
			handleSaleBackExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/rtsalse/edit',
				params),
			//销售退货-列表-单行
			getSaleBackListLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/rtsalseline/list',
				params),
			//销售退货-详情-单行
			getSaleBackDetailLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/rtsalseline/get',
				params),
			//销售退货-新增-单行
			handleSaleBackAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/rtsalseline',
				params),
			//销售退货-修改-单行
			handleSaleBackUpdataLine: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/rtsalseline',
				params),
			//销售退货-删除-单行
			handleSaleBackDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/rtsalseline/remove',
				params),
		},


		//其他入库
		otherIn: {
			//其他入库-列表
			getOtherInList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/itemrecpt/other/list',
				params),
			//其他入库-详情
			getOtherInDetail: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/itemrecpt/other/get', params
			),
			//其他入库-新增
			handleOtherInAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mobile/wm/itemrecpt/other',
				params),
			//其他入库-修改
			handleOtherInUpdata: (params = {}) => vm.$u.putJson(config.adminPath + '/mobile/wm/itemrecpt/other',
				params),
			//其他入库-删除
			handleOtherInDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/itemrecpt/other/remove',
				params),
			//其他入库-执行入库
			handleOtherInExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/itemrecpt/other/execute',
				params),
			//其他入库-列表-单行
			getOtherInListLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/itemrecptline/other/list',
				params),
			//其他入库-详情-单行
			getOtherInDetailLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/itemrecptline/other/get',
				params),
			//其他入库-新增-单行
			handleOtherInAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/itemrecptline/other',
				params),
			//其他入库-修改-单行
			handleOtherInUpdataLine: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/itemrecptline/other',
				params),
			//其他入库-删除-单行
			handleOtherInDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/itemrecptline/other/remove',
				params),
		},


		//其他入库
		otherOut: {
			//其他入库-列表
			getOtherOutList: (params = {}) => vm.$u.get(config.adminPath + '/mobile/wm/productsalse/other/list',
				params),
			//其他入库-详情
			getOtherOutDetail: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productsalse/other/get', params
			),
			//其他入库-新增
			handleOtherOutAdd: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/productsalse/other',
				params),
			//其他入库-修改
			handleOtherOutUpdata: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/productsalse/other',
				params),
			//其他入库-删除
			handleOtherOutDelete: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/productsalse/other/remove',
				params),
			//其他入库-执行入库
			handleOtherOutExecute: (params = {}) => vm.$u.put(config.adminPath +
				'/mobile/wm/productsalse/other/execute',
				params),
			//其他入库-列表-单行
			getOtherOutListLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productsalseline/other/list',
				params),
			//其他入库-详情-单行
			getOtherOutDetailLine: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/wm/productsalseline/other/get',
				params),
			//其他入库-新增-单行
			handleOtherOutAddLine: (params = {}) => vm.$u.postJson(config.adminPath +
				'/mobile/wm/productsalseline/other',
				params),
			//其他入库-修改-单行
			handleOtherOutUpdataLine: (params = {}) => vm.$u.putJson(config.adminPath +
				'/mobile/wm/productsalseline/other',
				params),
			//其他入库-删除-单行
			handleOtherOutDeleteLine: (params = {}) => vm.$u.delete(config.adminPath +
				'/mobile/wm/productsalseline/other/remove',
				params),
		},


		// sn码
		snCode: {
			getSnCodeInfo: (params = {}) => vm.$u.get(config.adminPath + '/mes/wm/snline/list',
				params)
		},

		// 批次码
		BatchCode: {
			getBatchCodeInfo: (params = {}) => vm.$u.get(config.adminPath + '/mes/wm/batch/batchValue',
				params)
		},

		// 个人信息修改
		user: {
			saveUserInfo: (params = {}) => vm.$u.post(config.adminPath + '/mobile/user/saveUserInfo',
				params),
			infoSavePwd: (params = {}) => vm.$u.put(config.adminPath + '/system/user/profile/updatePwd',
				params),
			infoSavePqa: (params = {}) => vm.$u.post(config.adminPath + '/sys/user/infoSavePqa', params),
		},

		task: {
			getAllTask: (params = {}) => vm.$u.get("/mobile/pro/protask/getTaskList", params),
			taskChange: (params = {}) => vm.$u.post("/mobile/pro/protask/change", params),
			taskInfo: (taskId, params = {}) => vm.$u.get(`/mobile/pro/protask/${taskId}`, params)
		},
		transorder: {
			putTransorder: (params = {}) => vm.$u.putJson("/mobile/pro/transorder", params),
			transorder: (params = {}) => vm.$u.postJson("/mobile/pro/transorder", params),
			transorderInfo: (params = {}) => vm.$u.get("/mobile/pro/transorder/getInfo", params),
		},
		feedback: {
			getAllFeedback: (params = {}) => vm.$u.get("/mobile/pro/feedback/list", params),
			addFeedBack: (params = {}) => vm.$u.postJson("/mobile/pro/feedback", params),
			deleteFeedBack: (recordIds, params = {}) => vm.$u.delete(`/mobile/pro/feedback/${recordIds}`,
				params),
			updataFeedBack: (params = {}) => vm.$u.putJson("/mobile/pro/feedback", params),
			listUnApproved: (params = {}) => vm.$u.get("/mobile/pro/feedback/listUnApproved", params),
			listApproved: (params = {}) => vm.$u.get("/mobile/pro/feedback/listApproved", params),
		},
		workstation: {
			getWorkstationList: (params = {}) => vm.$u.get("/mobile/md/workstation/getWorkstationList",
				params),
			getBindWorkstation: (params = {}) => vm.$u.get("/mobile/md/workstation/getMyWorkstation",
				params),
			//flag Y 表示绑定 N 表示解绑
			workstation: (params = {}) => vm.$u.putJson(`/mobile/md/workstation`, params)
		},
		sop: {
			getSopList: (params = {}) => vm.$u.get("/mobile/md/sop/list", params),
		},

		// 员工用户查询
		empUser: {
			listData: (params = {}) => vm.$u.get(config.adminPath + '/sys/empUser/listData', params),
		},

		// 组织机构查询
		office: {
			treeData: (params = {}) => vm.$u.get(config.adminPath + '/sys/office/treeData', params),
		},

		// 增删改查例子
		testData: {
			form: (params = {}) => vm.$u.post(config.adminPath + '/test/testData/form', params),
			list: (params = {}) => vm.$u.post(config.adminPath + '/test/testData/listData', params),
			save: (params = {}) => vm.$u.postJson(config.adminPath + '/test/testData/save', params),
			disable: (params = {}) => vm.$u.post(config.adminPath + '/test/testData/disable', params),
			enable: (params = {}) => vm.$u.post(config.adminPath + '/test/testData/enable', params),
			delete: (params = {}) => vm.$u.post(config.adminPath + '/test/testData/delete', params),
		},

		message: {
			listMyMessage: (params = {}) => vm.$u.get(config.adminPath +
				'/mobile/system/message/getMyMessage',
				params),
		}

	};

}

export default {
	install
}